<?PHP
/**
 * @Organization.php
 * Controls the model for Organization.php.
 *
 * Copyright 2011 by Matthew Wakim.  This program is part of Donate.
 * Donate is free software.  It comes with absolutely no warranty.
 * You can redistribute it and/or modify it under the terms of the GNU
 * General Public License as published by the Free Software Foundation
 * (see <http://www.gnu.org/licenses/ for more information).
 * 
 * @version April 14th 2011
 * @author Matthew Wakim, Chris Reekie
 */


class Organization {
	private $donorID; 		 // donorID int PK,FK (from auto-increment in Donor)
	private $organizationName; 	 // organization name as a string
	private $description;  	 // description as a string
	
	

	/**
	 * constructor for all Organizations
	 */
	function __construct($g,$f, $l)
{
		$this->donorID = $g;
		$this->organizationName = $f;
		$this->description = $l;
		
	}
	
	/** sets donorID
	*/
     function setdonorID($donorID) {
        $this->donorID = $donorID;
    }
	/** sets organizationName
	*/
     function setrganizationName($organizationName) {
        $this->organizationName = $organizationName;
    }
	/** sets description
	*/
     function setdescription($description) {
        $this->description = $description;
    }
	
	/** returns the donorID
	*/
    function getDonorID(){
        return $this->donorID;
    }
	/** returns the organizationName
	*/
    function getOrganizationName(){
        return $this->organizationName;
    }
	/** returns the description
	*/
    function getDescription(){
        return $this->description;
    }
	
	  /**
   * Prints all attributes of this object.
   * @return string $output The attributes listed in a string.
   */
  function printAllAttributes( )
  {
    $output = sprintf("Organization with ID=%d is %s, %s.", 
                      $this->donorID, $this->organizationName, $this->description);
    return $output;
  }
}